package org.ahuanlien.crm.mapper;

import java.util.List;

import org.ahuanlien.crm.domain.Client;
import org.ahuanlien.crm.domain.ClientDevelop;
import org.ahuanlien.crm.query.ClientDevelopQueryObject;
import org.ahuanlien.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

public interface ClientDevelopMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ClientDevelop record);

    ClientDevelop selectByPrimaryKey(Long id);

    List<ClientDevelop> selectAll();

    int updateByPrimaryKey(ClientDevelop record);

    /**
     * 潜在客户开发列表
     * @param qo
     * @return
     */
    int developQueryForCount(ClientDevelopQueryObject qo);

    List<ClientDevelop> developQueryForList(ClientDevelopQueryObject qo);

    /**
     * 正式客户跟进列表
     * @param qo
     * @return
     */
    int followUpQueryForCount(ClientDevelopQueryObject qo);

    List<ClientDevelop> followUpQueryForList(ClientDevelopQueryObject qo);

    /**
     * 更改标记结果
     * @param id
     * @param result
     */
    void changeResult(@Param("id") Long id, @Param("result") Long result);
}